/**
 * Created by jingxin on 2017/8/4.
 */
'use strict';

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

let schema = new Schema({
  phoneType: String,
  deviceNum: String,
  ip: String
}, {collection: 'active_info', timestamps: true});

schema.index({createdAt: 1});
schema.index({deviceNum: 1, createdAt: 1});

module.exports = mongoose.model('ActiveInfo', schema);

